Skip to content

feat(console): Setup gets one Packages entry, the package list's administration face; Installed Apps retires - #36933

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-36834-setup-packages-entry
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-36834-setup-packages-entry

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #36834

Clause-②: no
Metadata-protocol: none

维护者速读

  • 管理员在「系统设置 → 应用」里多了一个「软件包」入口,能看到本系统装的全部软件包,可启用、停用、删除;原来的「已安装应用」入口去掉了。
  • 落实你在软件包入口这张卡上的裁定:设置里只做管理,设计仍在 Studio。
  • 出错时管理员在设置里看不到或误操作软件包;改动只在界面和导航,撤回这次合并即可恢复原样。
  • 无

What changes

The face selector: the URL parameter face=admin. Setup's entry is a component nav item with params: { face: 'admin' }, and the sidebar sends a component entry's params as the query string, so the entry opens .../component/developer/packages?face=admin. With no face, the page is the development surface exactly as before (Studio's "All packages" link and each package card's Manage). An old address with source=marketplace and no face (bookmarks, and the marketplace page's "Installed" button) also reads as the administration face. A face value other than admin, or a repeated face, is refused by name (PACKAGES_FACE_UNKNOWN / PACKAGES_FACE_REPEATED), the same way the page already refuses a bad source. No new page, widget, hook or route.

The gate: requiredPermissions: ['manage_platform_settings'], the pattern Setup's Settings hub (nav_settings_hub) and Public Forms use. The server still checks every package write with manage_metadata.

  • Setup → Apps → Packages (nav_packages). @objectstack/platform-objects contributes the one entry to group_apps, unfiltered, translated in all 11 Setup locales (zh-CN: 软件包).
  • The administration face, built from the old Installed Apps view and extended to every source:
    • It lists every package of every source, with modules folded under their app. Platform packages (system / cloud) stay hidden.
    • It has a Source filter (All / Code / Marketplace / Authored) that writes ?source= and keeps face. Only marketplace rows are asked about updates.
    • Its one header action is New Package. A package created there opens in Studio at /studio/ID/data, the address the Studio landing's package card opens (BuilderLanding's open).
    • The detail sheet offers View info, Disable / Enable and Delete, and Delete keeps the keep-data choice. An authored package also gets "Open in Studio".
    • Not offered: Import, Edit, Publish, Revert, Export, Duplicate, Adopt loose items, and the pending changes' Publish / Discard.
  • Installed Apps retires. MARKETPLACE_INSTALLED_UI_BUNDLE no longer carries nav_marketplace_installed. It stays exported under its id, with navigationContributions: [], so cloud's import keeps compiling and registering it. The entry's labels leave the Setup bundle and its id joins the dead-key tombstone.
  • The comments that cited ruling 甲 as the reason Setup had no entry (setup-nav.contributions.ts, BuilderLanding.tsx, marketplace-ui.ts) now cite this card's amendment.

Readers of nav_marketplace_installed in this repo

Reader What happened
packages/cloud-connection/src/marketplace-ui.ts entry removed; the bundle is now empty (no pages, no contributions)
packages/cloud-connection/src/marketplace-installed-ui-entry.pin.test.ts restated as an absence pin
packages/platform-objects/src/apps/setup-nav.contributions.ts comment rewritten
11 Setup translation files + 10 *.source-hashes.ts key replaced by nav_packages
translations/setup-nav-dead-key-tombstone.test.ts id added as dead
packages/cloud-connection/CHANGELOG.md, packages/platform-objects/CHANGELOG.md release-owned history, untouched
docs/qa/platform-checklist/areas/platform-core.json stale checklist text naming the entry; outside this card's file surface, see Acceptance notes

Code that imports MARKETPLACE_INSTALLED_UI_BUNDLE still compiles, unchanged: packages/cli/scripts/check-app-nav-i18n.mjs, packages/qa/dogfood/test/platform-app-object-entry-views.test.ts, and the package index export.

Read first (by risk)

  1. ui/packages/app-shell/src/views/metadata-admin/PackagesPage.tsx. Look at the authoring switch in PackageDetailSheet, the adminFace branches in the header and toolbar, and onCreated.
  2. ui/packages/app-shell/src/views/metadata-admin/packageSource.ts, readPackagesFace, which reads the legacy source=marketplace address as the admin face.
  3. packages/cloud-connection/src/marketplace-ui.ts. The bundle is now empty but keeps its id.

Two-minute check

Boot any example as admin and open Setup. Under 应用 there are 软件包 and 浏览应用市场, and no 已安装应用. Click 软件包: the list shows the 来源 filter and a single 新建软件包 button, with no 导入 button.

Why

The maintainer's ruling on #36834 amends ruling 甲 of #25098. Setup is where an administrator sees what is installed and turns it on, off or away. Designing a package stays in Studio. The marketplace-only Installed Apps entry was a narrower copy of the same list, so it merges into the new entry's Source filter.

Verification

Live on examples/app-showcase (objectstack dev --seed-admin, own port and file DB), signed in as admin@objectos.ai. The console is the ui/apps/console Vite dev server on the current ui/ source, proxied to that backend, and was driven with Playwright in zh-CN.

  • Served nav (GET /api/v1/meta/app?id=setup): one nav_packages, with componentRef: developer:packages, params: {face: admin} and requiredPermissions: [manage_platform_settings]. No nav_marketplace_installed appears in the response.
  • Setup → 应用 → 软件包 opens ?face=admin. It shows the heading 软件包, the admin description, a 新建软件包 button, no 导入 button, and rows of every source (代码 and 自建).
  • Filter: 应用市场 sets &source=marketplace and shows the empty-marketplace state, because the showcase has no marketplace installs. 代码 and 自建 each narrow the list. 全部 clears source and stays on face=admin.
  • Old link: /apps/setup/component/developer/packages?source=marketplace opens the admin face, with the 应用市场 chip on and 新建软件包 present.
  • New package: 新建软件包, enter a name, save. The page lands on /studio/com.default.field-service/data and shows the toast 已创建软件包「Field Service」.
  • Detail (authored package): the sheet's buttons are exactly 查看信息 / 禁用 / 删除软件包 / 关闭, plus the link 在 Studio 中打开 to /studio/com.default.dogfood-alpha/data. These are absent: 编辑, 发布, 还原, 导出, 复制, 导入, 放弃, 收编散落项.
  • Disable, then enable: after 禁用 and confirm, the sheet shows 软件包已禁用。, the status reads 已禁用, and the button turns to 启用. After 启用, it shows 软件包已启用。 and the button turns back to 禁用.
  • Delete keeping data: DELETE /api/v1/packages/com.default.dogfood-alpha?keepData=true returned 200. Delete everything: DELETE /api/v1/packages/com.default.dogfood-beta returned 200. Each time the sheet closed and the row left the list.
  • Studio unchanged: its 全部软件包 link opens the page with no face, with no Source picker and with the 导入 and 新建软件包 buttons. The same package's sheet keeps 查看信息 / 编辑 / 发布 / 还原 / 禁用 / 导出 / 复制 / 收编散落项 / 删除软件包.

Screenshots (zh), in the project files under issue-36834/:

  • setup-packages-list-zh.png: the Setup list
  • setup-packages-detail-zh.png: the Setup detail sheet of an authored package
  • setup-packages-detail-code-zh.png: a code package's sheet (View info only; code packages are read-only)
  • setup-packages-disabled-zh.png: the feedback after a disable
  • setup-packages-marketplace-zh.png: the list filtered to marketplace
  • setup-packages-delete-keepdata-zh.png: the delete dialog with the keep-data choice
  • setup-new-package-lands-in-studio-zh.png: New Package landed in Studio
  • studio-packages-detail-unchanged-zh.png: Studio's sheet with every action

Tests

These ran on head bb10cd3592.

Package tests and type-checks
  • @objectstack/platform-objects: pnpm test gave 125 files / 2138 tests passed; typecheck passed.
  • @objectstack/cloud-connection: pnpm test gave 94 files / 1359 tests passed (lock VERDICT command-exit 0); typecheck passed.
  • UI, pnpm --dir ui exec vitest run over metadata-admin/PackagesPage* and studio-design/BuilderLanding*: Test Files 33 passed (33), Tests 284 passed (284) (lock VERDICT command-exit 0).
  • @object-ui/i18n tests: 109 files passed. type-check passed for @object-ui/app-shell and @object-ui/i18n.
  • pnpm check:app-nav-i18n: OK, with 14 contributors and 11 locales. Setup has 62 merged nav ids, each labelled in every locale.
Ablation (one-off, not kept)

After committing the fix, const authoring = face !== 'admin'; in PackageDetailSheet was replaced with const authoring = true;. The replacement was made through scripts/ablation-replace.mjs, with an anchor-hit check and a trap restore. The test "the detail sheet offers View info, Disable and Delete…" went red (1 failed). After the restore, the blob matched HEAD and git diff HEAD was empty.

Derived gate families

node scripts/pm/dispatch-gates.mjs --ran reported: 78 derived, 78 run, 0 NOT-MEASURED, a derived zero, because every run recorded an exit code and none was 3. CI runs the rest of the farm.

The local union ran on bb10cd3592. All 77 --commands families and pnpm --dir ui exec vitest run scripts/ (Test Files 172 passed, 2 skipped; Tests 5127 passed) exited 0.

Two of them needed a retry:

  • check:type-check-debt first returned queue-timeout 99, because a sibling run held the verify lock. The retry under the same slot exited 0.
  • check:dual-build-cjs-loads was red on the first pass. The cause was a half-built local @objectstack/organizations dist, a package outside this diff. After rebuilding it, the gate exited 0 with 124 entry points.

Changeset families: check-adr-0087-registration, check-changeset-no-major, check-empty-changeset and check:changeset-gate-self-tests all exited 0.

Acceptance notes

  • Delete's feedback is the sheet closing and the row leaving the list. Both faces already behaved this way, and no success notice was added, because a notice would change the development face too. Disable and Enable give an inline notice.
  • A code package's sheet offers View info only. Code packages are read-only, as they were before, so Disable and Delete appear on authored and marketplace packages.
  • Stale QA checklist text. docs/qa/platform-checklist/areas/platform-core.json (around lines 2393, 2404 and 2441) still describes the retired Installed Apps entry. It is outside this card's file surface and is left for the checklist owner.
  • Cloud. The cloud repository's import of MARKETPLACE_INSTALLED_UI_BUNDLE (cloud PR feat(spec)!: prune dead ReportColumnSchema/ReportGroupingSchema exports + unread report chart groupBy (#3463) #3488) keeps compiling. The bundle now contributes nothing, so whether cloud drops the import is cloud's call.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (Not run locally: the repo-wide lint is CI's run.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

…ministration face; Installed Apps retires

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…irst load at collection

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/cloud-connection, @objectstack/platform-objects, touching 18 documentable anchor(s).

17 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 62692b7f8b39597db2549f8821547e99e3294e3f.

⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 8 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 62692b7f8b39597db2549f8821547e99e3294e3f → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 1ea4f846117b9c3e61c4dd2a54fca7cf1b4ce5f1 — the merge of head 35bdb5bacfcdd68e0ddd025cb4a1db683a1e4524 into base 62692b7f8b39597db2549f8821547e99e3294e3f, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 1ea4f846117b9c3e61c4dd2a54fca7cf1b4ce5f1 && git checkout 1ea4f846117b9c3e61c4dd2a54fca7cf1b4ce5f1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 62692b7f8b39597db2549f8821547e99e3294e3f 35bdb5bacfcdd68e0ddd025cb4a1db683a1e4524 && git checkout -B drift-repro 62692b7f8b39597db2549f8821547e99e3294e3f && git merge --no-ff 35bdb5bacfcdd68e0ddd025cb4a1db683a1e4524

node scripts/docs-audit/affected-docs.mjs --json 62692b7f8b39597db2549f8821547e99e3294e3f

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 62692b7f8b39597db2549f8821547e99e3294e3f → pass the list as
args.docs, on the commit named under Which tree this was computed on.

Setup's admin tree in the both-halves wire pin grows from 35 to 37 ids:
`group_apps` is served again and carries `nav_packages`. The history
comment gains the line, the entry and its group are asserted by name,
and the contribution count in the arithmetic is corrected to 29.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

席位核对 — ACCEPT · repo:objectstack#3 · head 35bdb5b · 2026-11-24T10:53Z

L1 read of #36933 (card #36834, p2, the maintainer's direct order with rulings at 03:12Z and 03:16Z) at 35bdb5bacfcdd68e0ddd025cb4a1db683a1e4524. Clause-② no and Metadata-protocol none, both true: the change is navigation and console only, and no spec file is touched. NOT governed (0 of 38 paths hit the register). 1,159 changed lines on the card's one PR, under the per-card line, so it takes an ordinary queue landing.

Against the card, item by item.

  1. Setup entry. nav_packages goes in group_apps, unfiltered, with params: { face: 'admin' }. It is gated on manage_platform_settings, the same gate as nav_settings_hub and Public Forms, which satisfies item 4. The server's manage_metadata write gates are untouched. The label is in all 11 Setup locales. setup-packages-door.test.ts is restated, not loosened: exactly one package-list entry, the gate, and Studio's own development entry still shipped.
  2. One page, two faces. The face is chosen by readPackagesFace, the selector the PR names, and no new page, widget, hook or route is added. PackageDetailSheet gates every authoring control on authoring = face !== 'admin': Edit, Publish, Revert, Export, Duplicate, Adopt, the drafts block and browse-metadata. Disable / Enable and Delete keep their own conditions, and the keep-data dialog is unchanged. onCreated(id) is wired from CreatePackageDialog's r.id. On the admin face it forgets the list reads and navigates to /studio/ID/data, BuilderLanding's open address. The ablation (authoring = true) reds the admin-sheet test.
  3. Studio is unchanged. The face defaults to development, the development header still carries Import, New Package and the platform switch, and the CONTROL cases pin it.
  4. The comments that cited ruling 甲 are rewritten in setup-nav.contributions.ts, BuilderLanding.tsx and marketplace-ui.ts.
  5. Installed Apps retires. MARKETPLACE_INSTALLED_UI_BUNDLE keeps its id and its export, with navigationContributions: [] and the version bumped to 0.4.0. The pin is restated as an absence pin with a positive control (Browse lands in the same group). The id joins the dead-key tombstone. A legacy ?source=marketplace URL with no face reads as the admin face, and setSourceFilter writes face=admin with every pick, so pressing "All" from that address stays on the admin face. The seat owns the cloud half (mailbox pm:mailbox — triage#1 · os-warren #36743 7128073202).
  6. Source filter. A ToggleGroup offers All plus the closed set PACKAGE_SOURCES, writing ?source=. A press on the chosen value ('') is ignored rather than read as "no choice". An unknown or repeated face is refused by name, like source.
  7. Built from installedAppsView. The admin face is grouped over every source. Kernel packages are hidden, and only marketplace rows are asked about updates or draw the Update cell.

Fix round (35bdb5b). The cli pin moves 35 → 37 because group_apps is served again in the marketplace-less composition. The count stays exact, and group_apps's children are asserted by name. It is outside the claim's surface, but the fix-round order directed it. The locale and source-hash breach is mechanical, and the seat accepted it.

Changeset. It names platform-objects, cloud-connection, app-shell and i18n, all at patch, as the card asks, and each sentence holds against the diff. The one l1-face flag, @objectstack/cli, is a test under packages/cli/test/: files: ["dist", …] ships no test, so no entry is owed.

Acceptance. The zh screenshots the card names are in project files under issue-36834/ and listed in the body. I opened the list and the authored detail: the list shows 软件包 with the 来源 filter, a single 新建软件包 and no 导入. The detail shows 查看信息 / 禁用 / 删除软件包 plus 在 Studio 中打开. The live account covers disable/enable, both delete modes, create → Studio, the old link and Studio unchanged. Delete's feedback (the sheet closes and the row leaves the list) is the existing behaviour on both faces. It is a declared deviation, accepted.

Nits (none block).

  • N1. The zh admin description says 「启用、停用或删除」, but the button, status and every other packages string say 禁用 / 已禁用. The new sentence should say 禁用 to match. The en string is fine.
  • N2. docs/qa/platform-checklist/areas/platform-core.json (about lines 2393, 2404 and 2441) still describes the retired Installed Apps entry. It is outside this card's surface, and the dev noted it but did not file it, so the seat files the card.
  • N3. Draft fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 restates the same cli count. Whichever lands second re-counts, so the seat sequences them.

Mechanical. All-checks: 60 success · 12 expected skips · 0 failed · 0 pending. Floor checks are green, mergeable_state is clean, and the face is Fixes #36834, which delivers items 1–8.

Every open finding is a nit. ACCEPT, ordinary queue landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU

Landing · 2026-11-24T10:54Z · ACCEPT 7129393606 at head 35bdb5b

reading value
check-governed-merges.mjs --pr 36933 NOT governed · +861/−298 (1159 ≤ 3000); card #36834 total = this one PR (per-card rule of 2026-11-24 08:28Z)
landing-k.mjs --pr 36933 OK · K = 3 < 15 · no new locale pack under a label PR · no shared book moved under this PR's
checks at 35bdb5b 60 success, 12 expected skip, 0 failed or pending; mergeable clean

Open findings: nits only (L1 N1: one zh admin string says 停用 where the rest say 禁用; N2: the stale platform-core.json Installed Apps text, already requested from triage on #36743 7128073202 together with the cloud follow-up that drops the now-empty MARKETPLACE_INSTALLED_UI_BUNDLE import; N3: draft #34223 restates the same cli Setup count and already conflicts with main, so it re-counts after this lands). State: ready + auto-merge (Tier S). On MERGED, #36834 closes by Fixes; area ux-A removes pm:dispatched.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 10:54
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit c8d4b90 Nov 24, 2026
73 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36834-setup-packages-entry branch November 24, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants